package com.example.easyexceldemo.demos.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;

@Data
@AllArgsConstructor
@NoArgsConstructor
/*写Excel-->最简单的写-->最简单的写的对象*/
public class Student {
    @ExcelProperty(value = "编号") //value 表示标头
    @Id
    private Integer id;
    @ExcelProperty(value = "姓名") //value 表示标头
    private String name;
    @ExcelProperty(value = "年龄") //value 表示标头
    private Integer age;
    @ExcelProperty(value = "地址")
    private String address;
}
